Pipeline scheduler with fairness and minimum bandwidth guarantee

ABSTRACT

A pipeline scheduler provides a minimum bandwidth guarantee by transporting cells from an input port to an output port in a two-phased approach. Cells that conform to a minimum cell rate (MCR) are selected from queues at the input port and arranged into supercells for transport to the output port, followed by nonconforming cells, to guarantee fairness by using scheduling modules to build the supercells first for conforming cells, and then for nonconforming cells. Reservation vectors are used to permit the same time slot of the next frame to be reserved by a first queue, and the same time slot of the following time frame to be held for reservation by a second queue, to ensure equal time slot access by the first and second queues over successive time frames.

RELATED APPLICATION

This application claims priority under 35 U.S.C. § 119 based on U.S.Provisional Application Ser. No. 60/259,178, filed Jan. 3, 2001.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to a method and system for schedulingtraffic between an input port and an output port by constructingsuper-cells, and more specifically, to a method and system that usescrossbar switches and a credit system with a virtual-output queuing(VOQ) method.

2. Background of the Prior art

In the related art diffserv traffic scheduling system, a fixed fieldwithin a datagram header indicates the class of the datagram, which inturn determines the per-hop-behavior (PHB) of the datagram receives ateach diffserv router. Each class of traffic is an aggregate ofindividual traffic flows, and the aggregation of flows into classesoccurs only at the boundary nodes of the network. Similarly,conditioning flows (i.e. shaping and policing) occur only at theboundary odes.

Related art diffserv routers provide Quality of Service (QoS) byreserving bandwidth for different classes of traffic. In general, it isnecessary to reserve sufficient bandwidth for the traffic in any givenclass to ensure that the high-QoS classes receive superior treatment.The above-described related art diffserv technique is scalable, sinceinterior nodes concern themselves only with providing bandwidthguarantees to a small number of aggregate flows, and interior nodes donot shape or police traffic. Further, the prior art diffserv techniqueuses a naive algorithm for queuing.

However, the aforementioned related art scheduling method and system hasvarious problems and disadvantages. For example, but not by way oflimitation, related art interior routers do not perform compliancechecks. Further, the related art system cannot handle non-conformingcells (i.e., series of cells having a total size greater than theavailable capacity for cell transport), and instead simply discardsthose cells, thus resulting in non-transport of certain cells by therelated art scheduler.

Further, the related art scheduler sends full status information at eachtime slot, which results in a waste of system resources and an increasedprocessing time. As a result of the naive algorithm used for queuing,cells may stay queued for an unbounded time when the number of cells ina queue is less than the threshold for processing those cells, whichresults in an extensive processing delay. Additionally, the related artsystem and method is unfair, due to the unfair treatment of cells at theinput ports 1 a . . . 1N, including during use of the related art roundrobin algorithm, which does not permit equal or prescribed weighting ofaccess to the scheduler by all non-empty queues in an input port toovercome the related art fairness problem.

SUMMARY OF THE INVENTION

It is an object of the present invention to overcome the problems anddisadvantages of the prior art method and systems.

It is another objective of the present invention to provide a scalable,work-conserving pipeline scheduling system having improved speed.

It is still another objective of the present invention to supportmultiples classes of traffic, each class having its own quality ofservice (QoS), and having a fixed-size super-cell as the transmissionunit.

It is yet another objective of the present invention to provide a meansfor supporting non-conforming traffic, for traffic greater than theguaranteed rate.

It is another objective of the present invention to treat input andoutput ports fairly during the scheduling and reservation process.

To achieve these and other objects, a system for transporting data isprovided, comprising (a) an input device that receives data from atleast one input line and generates at least one supercell comprising aprescribed plurality of ATM cells, (b) a scheduling device that receivesa request from said input device when said prescribed plurality of ATMcells has arrived at said input device, and generates a grant thatinstructs said input device to generate said at least one supercell, and(c) an output device that receives said at least one supercell via acrossbar switch and in accordance with said grant, wherein saidsupercell comprises one of only two classes and corresponds to saidoutput device, and wherein a first of said two classes comprisesselected ones of said plurality of ATM cells that conform to a minimumcell rate (MCR), and a second of said two classes comprises selectedones of said plurality of ATM cells that do not conform to said MCR.

Further, a method of transporting data is provided, comprising (a)determining whether cells received at an input port have a conformingstatus or a non-conforming status, (b) reserving a queue position for aconforming cell, followed by reserving a queue position for anon-conforming cell in said queue of said input port, until apredetermined number of said received cells has been reserved in saidqueue, (c) said input port generating and transmitting a request to ascheduler in accordance with results of said reserving step, (d)generating and transporting a supercell that comprises one of saidconforming cells and said non-conforming cells in accordance with agrant received by said input device from said scheduler, and (e)receiving and deconstructing said supercell at an output device.

Additionally, a system for transporting data is provided, comprising aninput port having a plurality of queues corresponding to a plurality ofquality of service levels for a plurality of output ports, each of saidqueues receiving a plurality of cells of a first type and a second type,and a scheduling module at said input port that receives cells from saidplurality of queues at said input port and constructs supercells inaccordance with a reservation vector for each of said queues, whereinnon-empty ones of said plurality of queues has fair access to saidscheduler, and said supercells are transported to said output port inaccordance with a grant that is generated based on a request from saidinput port.

Yet another method of transporting data is provided, comprising (a)receiving data at an input device and generating cells, (b) classifyingsaid cells into one of a conforming class and a non-conforming class,wherein said conforming class comprises cells that conform to a minimumcell rate (MCR) requirement, and (c) transmitting a request from saidinput device to a scheduler. The method further comprises (d) inaccordance with a grant from said scheduler, operating a schedulingmodule to provide fair access to a plurality of queues containing saidcells at said input device, wherein said scheduling module controlstransport of said cells from said input device to an output device, and(e) deconstructing said cells at said output device and outputting IPdatagrams.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings, which are included to provide a furtherunderstanding of preferred embodiments of the present invention and areincorporated in and constitute a part of this specification, illustrateembodiments of the invention and together with the description serve toexplain the principles of the drawings.

FIG. 1 illustrates a switching system according to a preferredembodiment of the present invention;

FIG. 2 illustrates system parameters for the preferred embodiment of thepresent invention;

FIG. 3 illustrates a super cell format according to the preferredembodiment of the present invention;

FIG. 4 illustrates a queue structure of an input port module accordingto the preferred embodiment of the present invention;

FIGS. 5( a) and 5(b) respectively illustrate a method of queuing cellsand the operation of the input buffer according to the preferredembodiment of the present invention;

FIG. 6 illustrates a pipeline scheduler architecture according to thepreferred embodiment of the present invention;

FIGS. 7 and 8 illustrate examples of applications of the reservationvectors according to the preferred embodiment of the present invention;

FIG. 9 illustrates a method of the scheduler processing information fromthe input buffer module according to the preferred embodiment of thepresent invention;

FIG. 10 illustrates a method of scheduling supercells for transport,according to the preferred embodiment of the present invention;

FIG. 11 illustrates a round-robin connection of a distributed schedulerarchitecture according to the preferred embodiment of the presentinvention;

FIGS. 12( a) and 12(b) illustrate the global round robin architecturefor the preferred embodiment of the present invention;

FIGS. 13( a) and 13(b) illustrate the global dynamic round robinarchitecture for the preferred embodiment of the present invention;

FIGS. 14( a) and 14(b) illustrate an example of the fairness solutionaccording to the preferred embodiment of the present invention;

FIGS. 15 and 16 illustrate an application of the two-phase MCR solutionaccording to the preferred embodiment of the present invention;

FIG. 17 illustrates handling of multicasting at the input portsaccording to the preferred embodiment of the present invention; and

FIG. 18 illustrates handling of multicasting at the output portsaccording to the preferred embodiment of the present invention.

DETAILED DESCRIPTION OF THE INVENTION

Reference will now be made in detail to the preferred embodiment of thepresent invention, examples of which are illustrated in the accompanyingdrawings. In the present invention, the terms are meant to have thedefinition provided in the specification, and are otherwise not limitedby the specification.

I. Overall System Description

A. System Architecture

In this section, the overall architecture of the preferred embodiment ofthe present invention will be described, as illustrated in FIG. 1 andFIG. 2. FIG. 1 illustrates the system architecture of the preferredembodiment of the present invention. A switching system having N inputports 1 a . . . IN and N output ports 2 a . . . 2N is provided. Each ofthe input ports 1 a . . . 1N and output ports 2 a . . . 2N supports Rrespective input or output lines 3 a . . . 3R. Accordingly, theswitching system illustrated in FIG. 1 supports a total of L=NR lines (1. . . L). Alternatively, each line can be identified by its port numberand the offset number at each port. For example, but not by way oflimitation, if the input line number is R=8, then the 5^(th) offset ofinput port 9 is represented by the line number (9*8+5=77).

As illustrated in FIG. 1, the input and output ports 2 a . . . 2Ncommunicate through a N×N crossbar switch 5 that supports either IP orATM traffic. In the preferred embodiment of the present invention thetraffic includes, but is not limited to, datagrams. A centralizedscheduler 4 determines the communication pattern for the input andoutput ports 2 a . . . 2N. At the input ports 1 a . . . IN, incoming ATMcells (e.g., datagrams with 53 bytes) that have the same outputdestination are aggregated into a larger and fixed sized super-cell(i.e., a C-cell). The supercells are then routed by the crossbar switch5, repartitioned into standardized cells at the output port 2 a . . .2N, and then recombined into datagrams. The scheduler 4 is alsoconnected to the crossbar switch 5, as discussed in greater detailfurther below.

Further, the scheduler may comprise a scheduling module that includes acomputer-readable medium that is capable of storing a software program.The software program may implement the global round robin, dynamic roundrobin and global dynamic round robin processes, all of which aredescribed in greater detail below, as well as additional methods,algorithms and processed described herein. Alternatively, hardware maybe used in the scheduling module to implement to aforementioned methods.

FIG. 2 illustrates a list of system parameters and typical valuesaccording to the preferred embodiment of the present invention. Inaddition to the above-noted representations of system parameters N, Land R, K represents a total number of classes of traffic, M represents atotal number of scheduling modules, S represents the number of pipelinestages per scheduling module, and C represents a total number of cellsper super-cell. In the preferred embodiment of the present invention,exemplary values of system parameters include, but are not limited to,N=64, L=512, R=8, K=8, M=16, S=1 and C=8.

B. Queuing Structure

In this section, the queuing structure at the input buffer module willbe described, as illustrated in FIGS. 3 and 4. As noted above, thepreferred embodiment of the present invention transmits a supercell tothe output ports 2 a . . . 2N. The supercell is illustrated in FIG. 3.Each supercell includes cells 7 a . . . 7C, wherein C cells arecontained in the supercell, and corresponding labeling information 8 a .. . 8C for each supercell. The output line at the output port must knowthe input port, input offset, output offset, and class of each cell. Inthe preferred embodiment of the present invention, all cells in asupercell have the same input port, whereas each cell in a supercell mayhave its own input offset, output offset and class. However, asdescribed further below, header information 8 a . . . 8C is not neededby the scheduler 4 to control the system, and the header information 8 a. . . 8C is merely added for the output line of the output port.

With respect to the queuing structure for Quality of Service (QoS)considerations, the switching system according to the preferredembodiment of the present invention supports K classes of traffic, eachof which supports a QoS (e.g., a different service rate). Each inputport module has KN queues (i.e., one queue for each <class, output port>pair). KN² input queues are subsequently aggregated into two virtualqueues to reduce scheduler complexity, as described in greater detailfurther below.

The scheduler 4 only schedules 2N² input queues due to the aggregationof the K physical queues for each <input port, output port> pair into 2virtual queues. Each of the input ports 1 a . . . 1N sends the statusfor each of its virtual queues, which are independent of the class K, tothe scheduler 4, which selects a partial permutation (i.e., a partialset of selection of input-output connections) to be routed at each timeslot. The scheduler 4 chooses virtual queues to service in each timeslot, such that no more than one super-cell is transmitted from eachinput port scheduling module to the crossbar switch 5 per time slot, andno more than one super-cell is transmitted to each output port at a timestep. The scheduler 4 can either control the crossbar switch 5, oroutput port addresses can be attached to the headers of selectedsuper-cells (i.e., self-routing is performed).

FIG. 4 illustrates the queue structure of an input port i moduleaccording to the preferred embodiment of the present invention. For eachinput port i and output port j, there will be K queues representing eachof the classes of traffic (i.e., QoS). When a datagram arrives at aninput router, the next hop and class are determined, the datagram ispartitioned into cells, and the cells are then sent to the appropriatequeues. A port selector 6 selects an output port for the queues at theinput port i in accordance with information received in the incomingdata transmission.

As also illustrated in FIG. 4, the ATM cells arrive at the input ports 1a . . . 1N, and cells of the same class and output port are buffered inseparate queues until enough cells exist to create a full potentialsuper-cell at a queue. Next, the scheduler 4 is informed of the arrivalof the super-cell, including information about the potentialsuper-cell's input port, output port, and conforming/non-conformingstatus. A potential super-cell is conforming when all of its cells areconforming, and non-conforming when all of its cells are non-conforming.The scheduler 4 maintains variables holding the number of received butunserviced requests. As a result, a total of 2N² variables are required:N² for conforming traffic and N² for non-conforming traffic.

C. Input Buffer Module Processes

1. Method Descriptions

FIGS. 5( a) and 5(b) illustrate a method of queuing cells and theoperation of the input buffer according to the preferred embodiment ofthe present invention. As illustrated in FIG. 5( a), in a first step S1,a cell arrives at one of the input ports. Then, at step S2, a lookuptable is accessed to determine the class and output port destination forthe cell that arrived at step S1, and the cell is queued. As explainedin greater detail further below, the credit counter is updated for thequeue at step S28.

At step S3, a determination is made as to whether credits are available.If credits are available, then the cell may be considered conforming,and if credits are not available, then the cell may be considerednon-conforming. If credits are available, then a conforming cell counteris incremented at step S4, and at step S5, it is determined whetherenough cells have accumulated for a complete conforming supercell, bychecking the conforming cell counter. If it is determined in step S5that there are not enough cells for a supercell, then the process ends.However, if there are enough cells for a supercell, a request is sent tothe scheduler for a conforming supercell at step S6, and in step S7, theconforming cell counter is decremented by C, which is the number ofcells in a supercell. The process is then complete for the arriving,conforming cell at the input buffer.

If the determination is made at step S3 that the credits are notavailable, the cell may be considered nonconforming. Accordingly, atstep S8, the nonconforming cell counter is incremented. In step S9, itis determined whether enough cells have accumulated for a completenon-conforming supercell, by checking the non-conforming cell counter.If not enough cells have accumulated, the process ends. However, ifenough cells have accumulated, then a request for a non-conformingsupercell is sent to the scheduler in step S10. At step S11, thenonconforming cell counter is decremented by C, and the process is thencomplete for the arriving, non-conforming cell at the input buffer.

FIG. 5( b) illustrates the process according to the preferred embodimentof the present invention at the input buffer module, for construction ofthe supercells. As noted above, a request is sent to the scheduler onceit has been determined that there are enough cells for either aconforming or non-conforming supercell. At step S12, the input buffermodule determines whether a grant has been received. If the grant hasnot been received, the process ends. However, if a grant has beenreceived, then at step S13, a supercell is constructed on the fly, andat step S14, the supercell is sent to the crossbar switch.

An exemplary method for performing on-the-fly super-cell constructionaccording to the preferred embodiment of the present inventionillustrated in FIG. 5( b) is described below. Consider the K classqueues from input port i to output port j, having the fixed priorityscheme. A scanning device inspects the status of all queues, and selectsone cell to add within a cell time that is equal to the slot timedivided by C. As a result, within C cell times, C cells can be selected,and the super-cell will be ready for routing after C cell times. Whilethe scanning device incurs a single slot time latency to construct thesuper-cell once a transmission grant has arrived from the scheduler 4,the scanning device provides full flexibility in constructing thesuper-cell.

Let z_(ijk) represent the number of credits (in units of cells)allocated to the corresponding queue at each time slot. In general,z_(ijk) will be a fractional value. For example, but not by way oflimitation, if the class-k flow from input port j to output port jutilizes about 20% of the maximum bandwidth of an input port, z_(ijk) isset to about 0.2*C_(port), where C_(port) represents the total capacityof an output port. While it would be theoretically advantageous toincrease credits at each time slot using the formulac_(ijk)=c_(ijk)+z_(ijk), it is difficult to update the necessaryvariables at such a high frequency. To reduce the updating cost, thepresent invention updates credits only when a new cell arrives at aqueue. As a result, each queue maintains an additional variableindicating the last update time of the credit variable for that queue.When a new cell arrives, the number of time slots since the last creditupdate is calculated, and the credit variable is updated.

To prevent the unbounded growth of credits in the preferred embodimentof the present invention, it is necessary to enforce a maximum value foreach c_(ijk). Further, because a wrap-around problem may occur due to anextended time between queue arrivals, it may not be possible torepresent the number of time slots since the last arrival. To overcomethe wrap-around problem, the preferred embodiment of the presentinvention includes a low-overhead background update mechanism.

To determine the time at which the existence of a potential super-cellis signaled, one of the input ports 1 a . . . 1N signals the scheduler 4when either C conforming cells or C non-conforming cells are accumulatedin a queue.

The process of supercell construction with respect to the input buffermodule, and associated input queuing structure, is then completed.

2. Exemplary Pseudo-Code

Exemplary pseudo-code for the input port according to the preferredembodiment of the present invention illustrated in FIGS. 5( a) and 5(b)follows:

/* Pseudo-code for input port */ /* Incoming super-cells phase */ if(new cell arrives at q_(ijk)) { c_(ijk) = c_(ijk) + t * z_(ijk); /* t isthe number of slot times since last super-cell arrival */ if(c_(ijk) >= 1) { /* conforming cell arrived */ v_(ijk) = v_(ijk) + 1;c_(ijk) = c_(ijk) − 1; V_(ij) = V_(ij) + 1; if (V_(ij) == C) { V_(ij) =V_(ij) − C; inform scheduler of conforming super-cell from i to j; } }else { /* non-conforming cell arrived */ w_(ijk) = w_(ijk) + 1; W_(ij) =W_(ij) + 1; if (W_(ij) == C) { W_(ij) = W_(ij) − C; inform scheduler ofnon-conforming super-cell from i to j; } } } /* Pseudo-code for inputport */ /* Grant handling phase */ if (receive a grant for i to j) { for(each q_(ijk)) { /* look for conforming cells */ if (super-cell is notcomplete) { if (v_(ijk) > 0) { add cells from q_(ijk) to super-cell;decrement v_(ijk) appropriately; } } } for(each q_(ijk)) { /* look fornon-conforming cells */ if (super-cell is not complete) { if(w_(ijk) >0) { add cells from q_(ijk) to super-cell; decrement w_(ijk)appropriately; } } } }

To implement the above-described pseudo-code, a Round-Robin type ofalgorithm constructs the super-cell on the fly when transmission isgranted by the scheduler 4, similar to those discussed above.Alternatively, a first-in, first-out (FIFO) queue can be used toconstruct the super-cell. In the FIFO queue method, whenever a cellarrives, the queue number of the cell is queued in the FIFO queue.Conforming traffic has its own FIFO queue and non-conforming trafficalso has its own FIFO queue. When the input buffer receives a grant fromthe scheduler 4, the class queues are emptied in the FIFO order.

To implement the optional FIFO method, the following pseudo-code may beimplemented, where FV_(ij) is the FIFO that holds a queue number ofconforming cells from input port i to output port j and FW_(ij) is theFIFO that holds the queue number of non-conforming traffic from inputport i to output port j:

/* Pseudo-code for input port using FIFO */ /* Incoming super-cellsphase */ if (new cell arrives at q_(ijk)) { c_(ijk) = c_(ijk) + t *z_(ijk); /* t is the number of slot times since last super-cell arrival*/ if (c_(ijk) >= 1) { /* conforming cell arrived */ v_(ijk) = v_(ijk) +1; c_(ijk) = c_(ijk) − 1 V_(ij) = V_(ij) + 1; add cell queue number) toFIFO FV_(ij); if (V_(ij) == C) { V_(ij) = V_(ij) − C; inform schedulerof conforming super-cell from i to j; } } else { /* non-conforming cellarrived */ w_(ijk) = w_(ijk) + 1; W_(ij) = W_(ij) + 1; add cell queuenumber) to FIFO FW_(ij); if (W_(ij) == C) { W_(ij) = W_(ij) − C; informscheduler of non-conforming super-cell from i to j; } } } /* Pseudo-codefor input port */ /* Grant handling phase */ if (receive a grant for ito j) { for (each cell's queue number in the head of FIFO FVij) ) { /*look for conforming cells */ if (super-cell is not complete) { remove acell from q_(ijk) according to queue number in the head of FIFO FVij )and add to super-cell; decrement v_(ijk) appropriately; } } for (eachcell's queue number in the head of FIFO FWij) ) { /* look fornon-conforming cells */ if (super-cell is not complete) { remove a cellfrom q_(ijk) according to queue number in the head of FIFO FWij )and addto super-cell; decrement w_(ijk) appropriately; } } }

D. Scheduler Virtual Queuing Structure

This section discusses the scheduler virtual queuing structure withmultiple chips. More specifically, the activities occurring at thescheduler with respect to the input buffer module are described.

FIG. 6 illustrates the structure of the scheduler according to thepreferred embodiment of the present invention. A plurality of chips 100,101 are provided (e.g., 1 . . . M), and each of the chips 100, 101 iscapable of handling multiple input ports 1 a . . . 1n, where n=N/M, asdescribed in greater detail below. There is a counter for conforming andnonconforming supercells for each output per input port. As illustratedin FIG. 6, which is an exemplary description of the scheduling module ofthe present invention, but is not limited thereto, the first schedulemodule operates for time (t), the second schedule module operates totime (t+1), the third schedule module operates for time (t+2) and thefourth schedule module operates for time (t+3). Further, there areconnections between chips 100 and 101, such that messages can be sent toensure fairness and guarantee minimum bandwidth, as described in greaterdetail further below.

The scheduler selects a set of input-output connections for each slot,under the constraint that no input port sends more than one super-celland no output port receives more than one super-cell. To make thescheduler scalable to N—the number of input or output ports, adistributed scheduler with pipeline architecture is necessary. In thispipeline scheduler architecture, the scheduling task of an N×N system isdistributed among a number (e.g., M) Scheduler Modules (SMs), N/M inputports per module. These SMs are connected in a round-robin ring fashion.At a given time slot, each SM receives scheduling messages from itsupstream neighbor, makes scheduling decisions, and passes the possiblyaltered scheduling messages to its downstream neighbor. Since each SMmakes independent scheduling decisions from all others, it needs to makescheduling decisions for a time slot that is different from that ofothers. Thus, a frame of M time slots is needed for this distributedscheduler to complete the M scheduling slots for N ports.

FIG. 11 illustrates a 4×4 system with 4 SMs. A scheduling window is alsoused to show that each SM schedules for its input ports in a differenttime slot. The number in each box of this window designates the timeslot that the corresponding SM (in the vertical axis) schedules for itsinput at the corresponding time slot (in the horizontal axis). Forexample, but not by way of limitation, at time slot 1, SM1 makesdecisions of time slot 5 and output port 2 for input port 1, SM2 makesdecisions of time slot 6 and output port 2 for input port 2, SM3 makesdecisions of time slot 7 and output port 2 for input port 3, and SM4makes decisions of time slot 8 and output port 3 for input port 4. Onetime slot later, each SM will try to schedule for its input port for thetime slot received from its upstream SM. After a frame of 4 time slots,all SMs would have tried to schedule for all the input ports for all 4time slots.

E. Delay of a Pipelined Scheduler

1. Delay Concepts

To further explain the pipeline implementation, a simple hardware modelis provided, with a scheduling module comprising S pipeline stages,where the value of S depends on the implementation, but will be aninteger in the range 1<=S<=N/M. In general, each pipeline stage handlesa block of N/M/S input ports. The pipeline stages pass reservationvectors to each other. The reservation vector represents the partialpermutation to be routed at some point in the future. It simplyindicates which output ports have already been reserved for that slot,and therefore only N bits are needed.

In one slot time, each pipeline stage is able to make reservations (ifpossible) for each of its N/M/S input ports, and pass the reservationvector to its neighboring pipeline stage. With this approach, all inputports are allowed to attempt to make reservations in a reservationvector with a latency of SM time slots. To increase the throughput ofthe system, a scheduling window is started by allowing each reservationmodule to start with a reservation vector. In this way, SM reservationvectors can be calculated in SM slot times.

Thus, the complexity of the scheduler is increased by considering thefact that each input port has two chances to see each reservationvector. The first time it sees a reservation vector, it should try toreserve only conforming traffic. The second time it sees the reservationvector, it can also try to reserve non-conforming traffic. Having twoscheduling phases, the scheduler doubles the latency to 2SM time slots;that is, it requires 2SM time slots to schedule output for every SM timeslots. This is insufficient, since we need to schedule one set of outputport reservation every time slot. To overcome this problem, theresources at each scheduling module are doubled; each scheduling modulemust handle two reservation vectors in each slot time.

At time t=1, we start with SM reservation vectors distributed over theSM pipeline stages. At time t=SM, those vectors have reservations forconforming traffic. At time t=SM+1, we start up a new batch of SMreservation vectors, while we let the original batch start on its secondpass through the pipeline. Thus, at each slot time each pipeline stageis handling conforming reservations for one vector and non-conformingreservations for another. The overall latency to schedule a vector is2SM, but the system outputs SM vectors (calculated in this schedulingwindow but for use in the next scheduling window) every SM slots,resulting in the required throughput.

To more accurately model the restrictions of current hardware, it is nowassumed that it takes one slot time to transfer a reservation vectorbetween modules. Considering only a single vector, the latency hasincreased to 2(SM+M). Using the technique described in the previousparagraph becomes infeasible, since it would only calculate SM partialpermutations every SM+M time slots. It is necessary to be working on2(SM+M) reservation vectors at any given time.

To achieve this goal, a transfer time is equivalent to a pipeline stagefor which no work is done. At the beginning of a batch of reservationvectors, the transfer stages also start with reservation vectors.Effectively, each batch starts with SM+M reservation vectors instead ofSM. To reiterate, the latency has become 2(SM+M), and the system outputsSM+M reservation vectors every SM+M time slots.

2. Exemplary Description

A small example of the scheduling algorithm with N=4, M=2, and S=2 canbe found in FIG. 7, which emphasizes the manipulation of a singlereservation vector. The matrices x and y hold the x_(ij) and y_(ij)denoting the number of super-cells waiting for transfer for conformingand non-conforming traffic, respectively. In this example these valuesdo not change as the reservation vector passes through the scheduler,though in general this does not have to be the case. The example alsoassumes communication between modules does not incur extra delay. In thefirst pass through the pipeline, input port 1 reserves output port 1 andinput port 4 reserves output port 4. In the second pass, input port 3reserves output port 2. Note that a given input port can make only onereservation in a given time slot. The latency to schedule a vector is2SM=8 time slots.

FIG. 8 shows a larger example (N=32, M=4, and S=2) that emphasizes themovement of reservation vectors within a scheduling window. Delaysbetween modules exist, so the scheduler outputs SM+M=12 reservationvectors every 12 slots. In the shown window, the reservation vectors fortime slots 1–12 can reserve for either conforming or non-conformingtraffic, since in a previous processing operation conforming-onlyreservations were made for these time slots. These are shown as boxeswith dotted lines. The reservation vectors for time slots 13–24 canreserve for new conforming traffic only. These are shown as boxes withsolid lines.

F. Scheduler Methods

FIG. 9 illustrates a method of the scheduler processing information fromthe input buffer module according to the preferred embodiment of thepresent invention. In a first step S15, a request is received from theinput buffer module. As noted above, depending on whether credits areavailable, the request may be for a conforming or non-conformingsupercell. At step S16, queue length for either the conforming ornon-conforming queue is incremented, based on the type of request. Thescheduler then makes the necessary reservation (which is discussed ingreater detail further below) by scheduling the cell at time slot t(this is done at different time slots for each of the different inputs)for output. Then, a supercell is scheduled for the input and a grant issent to the input buffer module, for each input.

Once the input buffer module receives the grant, the process isperformed, as illustrated in FIG. 5( b) and discussed in greater detailfurther above.

FIG. 10 illustrates a method of the scheduler scheduling supercells fortransport, according to the preferred embodiment of the presentinvention. In a first step S17, a supercell is scheduled for connectedinput, for transport at a time slot t in the future. Then, at step S18,the grant is transmitted to one of the connected inputs. At step S19,the reservation status is transmitted to the next chip (i.e., schedulingmodule) in the scheduler. At step S20, a check is performed to determineif the frame is complete. If so, then the process ends. If the frame isnot complete, then steps S17–S20 are repeated until it is determinedthat the frame has been completed in step S20.

II. The Fairness Problem and the Pipeline Scheduler

In the related art pipeline scheduler, the operation of which isdescribed in greater detail in Section I above, there exists a problemknown as the fairness problem. The basis of the fairness problem is thefact that not all input ports and/or output ports share available timeslots equally.

Accordingly, fairness can be defined by fair access of a schedulingmodule to a share of the total available capacity. Fairness can befurther divided based on being equally weighted or not equally weighted.For example, but not by way of limitation, if all scheduling moduleshaving traffic are guaranteed equal access in terms of total capacity,then equal fairness has been guaranteed. For example, equal fairnessexists when active schedule modules (SM's) that are carrying trafficeach have equal access to the total capacity, even with the input andoutput bottleneck situations described in greater detail below.

Alternatively, fairness can also be weighted. If a particular schedulingmodule is to be given priority due to heavy traffic or for any otherreason, then that scheduling module will be given a greater weight. Forexample, if a first SM is more heavily weighted than a second SM (e.g.,75/25), then the first SM will receive a proportionately larger share ofaccess (e.g., 75%) to the total capacity than the second SM (e.g., 25%).

Further, the concept of weighting is not limited to comparison betweenthe two scheduling modules in the aforementioned example, and can beused to distribute weighting between all active scheduling modules thatare carrying traffic.

A. Bottleneck at the Output Port

Fairness problems can occur due to bottlenecks at the input port and/orthe output port. If a particular input port has queues for manydifferent output ports, there is a problem in the allocation oftransmission capacity among the queues. If allocation is not proper,then there can be a collision between outputs if the order of outputport selection is not performed fairly. Further, not maintaining outputfairness can result in congestion at busy output ports. The preferredembodiment of the present invention overcomes the related art bottleneckproblem at the output port, as discussed in greater detail below.

An example of the output bottleneck problem follows. First, it isassumed that the related art sequence of scheduling for a particulartime slot with respect to the time frame is always fixed and unfairamong the scheduler modules (SMs) due to the topology of connection ofthe SMs in the distributed architecture. As illustrated in FIG. 11,which is described in greater detail further below, the scheduling orderis always SM1→SM2→SM3→SM4 for time slot 5, 9, 13, and etc. (i.e., thefirst time slot of each time frame).

For example, but not by way of limitation, SM1 and SM2 have no traffic,and both SM3 and SM4 have traffic that goes to output port 1 only. Aprior art scheduler would let SM3 consume all 3 time slots 5, 6, and 7of time frame 2, and SM4 would only get time slot 8. Thus, SM3 gets ¾ ofthe total capacity while SM4 only gets ¼ of the total capacity. Thatpattern will continue for the remainder of the time frames of operation.In the above-described situation, ideally, the first and second SMsshould each get 50% of the total capacity. As a result, SM4 does nothave fair access with respect to SM3. The above-mentioned problem isreferred to as the output port bottleneck problem.

B. Bottleneck at the Input Port

Additionally, bottleneck problems can also occur at the input port. Forexample, but not by way of limitation, when an input port is treatedunfairly with respect to an output port (i.e., total capacity is notallocated fairly between multiple scheduler modules having differentinput ports and the same output port), then congestion can occur at someof the input ports. The preferred embodiment of the present inventionovercomes the related art bottleneck problem at the input port, asdiscussed in greater detail below.

III. Achieving Equal Fairness (Global Dynamic Round Robin)

As noted above, the fairness problem in the pipeline scheduler can beovercome by having either equal fairness or weighted fairness. Toachieve equal fairness, a global dynamic round robin (GDRR) is applied.This section describes overcoming the aforementioned related art outputport and input port bottleneck problems separately, and then thecombined, overall solution to the bottleneck problem that achieves equalfairness. An example is also provided.

A. Overcoming the Output Bottleneck Problem (Global Round Robin)

As discussed in the foregoing section, the output bottleneck problemoccurs when multiple input ports send an output to the same output port.To overcome this problem, the Global Round Robin (GRR) is applied. Thissection discusses the application of the GRR.

In the related art, to overcome the speed bottleneck problem at theoutput, a round-robin scheme is used to implement the aforementionedexample. As illustrated in FIG. 11, in a round robin (RR) scheme, eachscheduler module SM1 . . . SM4 schedules for a given time slot one framein advance of the current frame to generate a reservation status vector.Four super cells can be transmitted by each SM in a given time frame.Thus, at TS1, SM1 reserves TS5, SM2 reserves TS6, and so on. AT TS2, SM2has the opportunity to reserve TS5 for frame 2, if it has not yet beenreserved by SM1, SM3 has the same opportunity with TS6, SM4 has the sameopportunity with TS7, and SM1 has the same opportunity with TS8. Thus,as noted above, a fairness problem results from this basic related artpipeline scheduler.

To overcome the fairness problem that relates to the output portbottleneck, the GRR algorithm of the preferred embodiment of the presentinvention is illustrated in FIGS. 12( a) and 12(b). In a first step S21,it is determined whether priority is held for the current time slot. Ifthe answer is YES, then in step S22, it is determined whether thecurrent time slot is reserved by minimum cell rate (MCR) traffic. Theconcept of MCR traffic will be discussed in greater detail below.

If the answer to step S22 is NO, then the output is reserved with heldpriority at step S23, and at step S24, holding priority for the nextframe is released. However, if the answer to step S22 is NO, then theholding priority is released at step S25.

After step S25, or alternatively, if the answer to step S21 is NO, it isdetermined whether the output queue is empty at step S26. If the outputqueue is empty, then another queue is tried in the round robin list atstep S27, and steps S26 and S27 are repeated until a non-empty outputqueue is found.

If the answer to step S26 is NO, then at step S29 it is determinedwhether (a) the output port is available and (b) the output port is notheld by another input port. If the answer to step S29 is NO, then stepS27 is performed as described in greater detail above. If the answer tostep S29 is YES, then the output port is reserved at step S30.

As illustrated in FIG. 12( b), after step S30, or alternatively, stepS24, has been completed, it is determined in step S31 whether the outputqueue is empty for the next frame. If the answer to step S31 is YES,then the next queue in the round robin list is tried at step S32, andsteps S31 and S32 are repeated until a non-empty output queue for thenext frame is found.

If the answer to step S31 is YES, then it is determined whether for thenext frame, there is an output port that is available and not held byany other input port. If the answer to step S31 is NO, the step S32 isperformed as described in greater detail above. However, if the answerto step S33 is YES, then the reservation is held for the output (i.e.,J) that is in the next frame at step S34.

In an alternative embodiment of the present invention, a minimum cellrate (MCR) reservation can be made, which can block permission forreservation of the output port by an input port with held priority. Suchan embodiment is described above with respect to steps S22 and S25, andalso in greater below. The aforementioned alternative embodiment isperformed if a particular input port has queues for many differentoutput ports 2 a . . . 2N, such that the particular input port mustdivide transmission capacity evenly among its queues, and maintainoutput fairness.

B. Overcoming the Input Bottleneck Problem (Dynamic Round Robin)

As also discussed in the foregoing section, the input bottleneck problemoccurs when different output ports share a common input port. Toovercome this problem, the Dynamic Round Robin (DRR) is applied. Thissection discusses the application of the DRR.

To overcome the bottleneck speed problems at the individual inputs, theDRR algorithm is applied. In the preferred method according to thepresent invention, a SM uses a dynamically adjusted Round-Robin list tomaintain the order in which the output ports 2 a . . . 2N are selectedby the input port. The selection and ordering processes of the DynamicRound-Robin (DRR) list differs from the related art Round-Robin list inthat a selected/served element in the list is moved to the back of thelist, and the head of the list stays if it is not served.

For example, but not by way of limitation, in FIG. 11, if input port 1has queues for output ports 1, 2, and 3, then the initial selectionorder of the dynamic Round-Robin list is (1, 2, 3). When output port 1is served, then the list becomes (2, 3, 1). However, if output port 2 isserved first because port 1 is blocked (i.e., reserved by other input),then the list should become (1, 3, 2) so that output port 1 still isfavored to be selected in the next time frame.

C. Overcoming the Output and Input Bottleneck Problems (Global DynamicRound Robin)

As noted in sections III.A and III.B above, the output and inputbottleneck problems can be overcome separately by applying the GRR andthe DRR, respectively. However, to overcome both the input as well asthe output bottleneck problems at the substantially same time, a Global,Dynamic Round Robin (GDRR) solution is provided, as described in greaterdetail below.

FIGS. 13( a) and 13(b) illustrate the steps of the GDRR according to thepreferred embodiment of the present invention. Where indicated, the DRRand GRR methods are performed as indicated above. In a first step S35,it is determined whether priority is held for the current time slot. Ifthe answer is YES, then in step S36, it is determined whether thecurrent time slot is reserved by minimum cell rate (MCR) traffic, asdiscussed in greater detail above with respect to FIGS. 12( a) and (b),as well as further below.

If the answer to step S36 is NO, then the output is reserved with heldpriority at step S38, and at step S39, holding priority for the nextframe is released. However, if the answer to step S36 is NO, then theholding priority is released at step S37.

After step S37, or alternatively, if the answer to step S35 is NO, theprocess is started from the head of the DRR list as determined by theabove-described DRR process, at step S40. Then, it is determined whetherthe output queue is empty at step S41. If the output queue is empty,then another queue is tried in the DRR list at step S42, and stepsS40–S42 are repeated until a non-empty output queue is found for thecurrent time slot in the current frame.

If the answer to step S41 is NO, then at step S43 it is determinedwhether (a) the output port is available and (b) the output port is notheld by another input port for the current time slot in the currentframe. If the answer to step S43 is NO, then step S42 is performed asdescribed in greater detail above. If the answer to step S43 is YES,then the output port is reserved at step S44. Next, the output for thecurrent time slot and the current frame is moved to the back of the DRRlist by the method described above with respect to the DRR algorithm, atstep S45.

As illustrated in FIG. 13( b), after step S45, or alternatively, stepS39, has been completed, the process starts from the head of the DRRlist for the next frame at step S46. It is then determined in step S47whether the output queue is empty for the next frame. If the answer tostep S47 is YES, then the next queue in the DRR list is tried at stepS48, and steps S46 and S47 are repeated until a non-empty output queuefor the next frame is found.

If the answer to step S47 is YES, then it is determined whether for thenext frame, there is an output port that is available and not held byany other input port at step S49. If the answer to step S49 is NO, thestep S48 is performed as described in greater detail above. However, ifthe answer to step S33 is YES, then a reservation is held for the output(i.e., J) that is in the next frame at step S51. Next, the output forthe next frame is moved to the back of the DRR list.

As noted above, in an alternative embodiment of the present invention, aminimum cell rate (MCR) reservation can be made, which can blockpermission for reservation of the output port by an input port with heldpriority.

Thus, the GDRR algorithm combines the features of the above-describedGRR and DRR algorithms to provide for equal fairness by overcoming theabove-described input bottleneck and output bottleneck problems in asingle algorithm (i.e., GDRR). The example provided below illustrates anapplication of the GDRR.

D. Exemplary Description

FIGS. 14( a) and 14(b) illustrate a first example of the preferredembodiment of the present invention. In FIG. 14( a), a simple example ofa 4×4 system is used to illustrate the details of the schedulingalgorithm. In this example, Port1/SM1 has traffic to output port 2,Port2/SM2 has traffic to output port 2, Port3/SM3 has traffic to outputports 2 and 4, and Port4/SM4 has traffic to output ports 3 and 4.

In FIG. 14( a), SM1 makes a reservation for output port 2 for time slot5 since port 2 was not held and is available. The <OR, P> vector changesfrom <0000, 0000> to <0100, 0000> due to reservation at time slot 5. The<PI, PO> vector becomes <0, 2> since port 2 is the head of theRound-Robin order. The updated <PI, PO> vector stays with SM1 at thefirst time slot of the current time frame, and it will be inherited bySM1 at the first time slot of the next time frame.

Also, SM2 holds reservation permission for output port 2 for time slot 9since port 2 was reserved at time slot 5 but it is still open forholding. The <OR, P> vector changes from <0100, 0000> to <0100, 0100>due to holding at time slot 9. The <PI, PO> vector becomes <2, 2> sinceport 2 is the head of the Round-Robin order and input port 2 now isholding the reservation right for output port 2 at time slot 9. Thethird entry indicates that SM3 not only reserves output port 4 at timeslot 6 but also holds permission for output port 2 at time slot 10.

Next, SM3 makes reservation for output port 4 for time slot 5 since port2 was reserved at time slot 5 and its holding right was held at timeslot 9. The <OR, P> vector changes from <0101, 0100> to <0101, 0100> dueto reservation at time slot 5 for output port 4. The <PI, PO> vectorbecomes <0, 2>. Port 2 stays as the head of the Round-Robin orderalthough port 4 was served first. This scheme will give port 2preferences for the next round of scheduling process so that it will notmiss its chance of being served.

FIGS. 14( a) and 14(b) indicate that both SM1 and SM2 are totallyblocked, neither reserve nor hold, from doing any scheduling. Hence, the<OR, P> vector stays the same. The <PI, PO> vector becomes <0, 2>. Port2 is the head of the Round-Robin order.

At the end of the time slot 4, the end of time frame 1, time slots 5, 6,7, and 8 are scheduled. The scheduler slides into time frame 2 forscheduling.

Note that the OR vectors of SM1, SM2, SM3, and SM4 are set to ‘0’s atthe beginning of time frame 2, but the P vectors are inherited from SM4,SM1, SM2, and SM3 at the end of time frame 1 respectively. Both SM1 andSM2 are blocked from scheduling because some other input ports areholding the reservation rights in this time frame for time slots 5 and6.

SM2 makes a reservation for output port 2 because SM2/input port 2 heldthe reservation right for time slot 9. Once SM2 exercises this right, ithas to return this right by changing vector P from 0100 to 0000 so thatother SMs can use it. In addition, PI has to be reset to ‘0’.

The rest of the scheduling steps illustrated in FIGS. 14( a) and 14(b)follow without further explanation, because those steps follow the samemethodology discussed in greater detail above.

IV. Guaranteeing minimum bandwidth

A. Two-Phased Scheduling System

To give priority to conforming traffic, the two-phased schedulingapproach is used. In the first phase, only conforming traffic makesreservations, while in the second phase, only non-conforming trafficmakes reservations. When a cell arrives at the input buffer module, thecell is classified as conforming if it finds an unused credit in itsassociated credit pool. Otherwise, the cell is classified asnon-conforming. Accordingly, the traffic in an aggregated flow isconforming if it does not utilize more than its allocated bandwidth. Thescheduler 4 does not discard non-conforming traffic (as is done in therelated art system), but instead routes non-conforming traffic so as tonot conflict with conforming traffic.

Alternatively, conforming and/or non-conforming reservations may be madein the second phase. The conforming traffic is also called the MinimumCell Rate (MCR) traffic because each Virtual Output Queue (VOQ)accumulates transmission credits at a specified minimum cell rate overtime. When enough cells arrive (with the same input port and outputport, and possibly, but not necessarily, having different classes) atone of the queues to construct a super-cell, the input port informs thescheduler 4 of the new arrival of a super-cell, including whether or notthe super-cell is conforming.

When an arrival notification is received by the scheduler 4, thescheduler 4 increments a variable associated with the super-cell's inputport, output port, and conformation status. The variables are x_(ij)(for conforming super-cells) and y_(ij) (for non-conformingsuper-cells). Note that x_(ij) is actually the integer quotient ofV_(ij)/C, and y_(ij) is the integer quotient of W_(ij)/C. Overall, thescheduler 4 needs 2N² variables. The variables are decremented when thescheduler 4 chooses super-cells to route.

The preferred embodiment of the present invention uses class-basedqueuing (CBQ), which supports the related art IETF-defineddifferentiated services (diffserv) technique. Further, bandwidthguarantee is achieved by dispensing the total transmission capacity overthe flows by using a credit system that makes each flow accumulate afraction of one super cell transmission bandwidth every time slot. Whena flow accrues at least one credit, one super cell in this flow istransmitted, and the super-cell consumes that transmission credit.

The scheduler 4 need not distinguish between each of the K classes oftraffic, but only stores the number of conforming and non-conformingsuper-cells from each input port to each output port. That is possiblebecause the scheduler 4 views inputs as two virtual queues from eachinput port i to its respective output port j, wherein one of the virtualqueues holds conforming traffic, and the other virtual queue holdsnon-conforming traffic. The scheduler 4 maintains information aboutsizes of the virtual queues (e.g., units of potential super-cells) andselects partial permutations for transport on this basis.

In the preferred embodiment of the present invention, each of the inputports 1 a . . . 1N includes dedicated lines 9 a, 9 b to communicate withthe scheduler 4, which constantly monitors the number of conforming andnon-conforming super-cells in each queue. As illustrated in FIG. 4, allcells having the same input port, output port, and class are maintainedin the same queue at the input port, regardless of whether they areconforming or non-conforming. However, a super-cell may contain cellsfrom different classes, because it is only constructed based on apredefined policy after receiving a transmission grant from thescheduler 4.

The granting and requesting phases are independent of one another.Further, the input port scheduler module determines how to construct theC-cell. For example, but not by way of limitation, the C-cells can beconstructed in the order in which they are sent to the output port.Also, the position of each cell in the queue is not as important as thenumber of conforming cells in a given queue.

Credits are maintained only at the input port queues, and the scheduler4 has no knowledge of credits. Further, the cells within each queue ateach input port need not be labeled as conforming or non-conforming. InFIG. 4, q_(ijk) represents the queue for class-k traffic from input porti to output port j, c_(ijk) represents the number of credits (e.g.,units of cells) associated with q_(ijk), and v_(ijk) and w_(ijk)respectively represent integers for the number of conforming cells andnon-conforming cells within the queue q_(ijk). When a cell arrives at aqueue, it is determined whether the queue has any credits left. Ifc_(ijk)>=1, v_(ijk) is incremented and the cell is placed in the queueq_(ijk). Otherwise, w_(ijk) is incremented and the cell is placed inq_(ijk). Thus, the cells are sent to the input port based on outputport, and queues in the input port based on class.

V_(ij) and W_(ij) represent integers for the number of conforming cellsand non-conforming cells, respectively, from input port i to output portj that the scheduler 4 has not yet been informed about, independent ofclass. When a new cell arrives at any of queues i to j at the input porti, either V_(ij) or W_(ij) is incremented. If V_(ij)=C, where Crepresents the number of cells in a super-cell (e.g., C=8), then a newconforming super-cell is constructed when a grant is given by thescheduler 4. A conforming request is sent to the scheduler 4 and C issubtracted from V_(ij). Next, based on W_(ij) and C, the scheduler 4 isinformed of the existence of a new non-conforming potential super-cell.Requests to the scheduler 4 are made for grants based on accumulatingeither C conforming cells or C non-conforming cells.

When an input port receives a grant from the scheduler 4, the super-cellis constructed “on the fly” and transmitted to the scheduler 4 to thecrossbar switch 5, and an arrival signal is sent to the scheduler 4.Because the input buffer knows the number of conforming andnon-conforming cells in each service queue, conforming cells are addedto the super-cell before non-conforming cells are considered. Further,when a cell is added to a super-cell, the added cell comes from the headof a service queue, regardless of whether that cell was originallyclassified as conforming.

For example, but not by way of limitation, if a queue holds threenon-conforming cells, and a single conforming cell then arrives at thequeue, followed by a transmission grant from the scheduler 4 (i.e., thesupercell can be constructed), the supercell constructor at the inputport knows that the queue has a conforming cell. To include theconforming cell, the constructor then takes the cell at the head of thequeue, not the late-arriving conforming cell.

In another preferred embodiment of the present invention, a super-cellmay include a mixture of conforming and non-conforming cells.

The preferred embodiment of the present invention normally selectsconforming cells prior to non-conforming cells independent of class.However, certain situations exist where the super-cell constructor atthe input ports 1 a . . . 1N can have a preference based on classes oftraffic. For example, but not by way of limitation, a fixed priorityscheme (e.g. classes with lower numbers having priority) may beimplemented instead of selecting conforming cells before non-conformingcells at the super cell constructor of the input ports 1 a . . . 1N.Alternatively, certain “low latency” classes may be considered as apriority. As noted above, the cell discrimination based on classesoccurs at the input ports 1 a . . . 1N, not the scheduler 4.

B. Exemplary Description

As illustrated in FIG. 15, the two-phase MCR scheduling fits well withthe 2 frame scheduling window, as each SM needs to schedule 2 differenttime slots at a time: one for MCR, and the other for fairness. The orderthat each SM processes its requests is to a) make reservation for thepreviously held permission or make reservation for the non-conformingtraffic in the dynamic Round-Robin order in F1 part of the schedulingwindow, b) make reservation for conforming traffic—MCR traffic, c)release the previously held permission if it were blocked again by a MCRtraffic or hold the reservation right for the output port that is at thehead of the dynamic Round-Robin list.

Thus, a new vector ORM_(kj) for 1<j<N and 1<k<M is needed to indicatewhich output ports 2 a . . . 2N have already been reserved for a givenposition of time slot k in the future time frame: “1” indicatesreserved, “0” indicates not reserved. It is initialized to all 0's atthe beginning of each time frame. Also, OR_(kj) now inherits theORM_(kj) information at the beginning of each time frame instead ofbeing initialized 0.

As illustrated in FIG. 15, during time Frame 1, each SM schedulesfairness traffic for F1 part—Frame 2, and MCR traffic for the F2part—Frame 3, of the scheduling window 11. Then, as the scheduler slidesthe window 11 one frame ahead—to Frame 2, the SMs will schedule fairnesstraffic for Frame 3—OR_(2j) inherits ORM_(2j) information, and MCRtraffic for Frame 4. Each box in the window 11 represents that one SM isprocessing 2 different time slots in 2 different time frames. Forexample, at time slot 1, SM1 is scheduling fairness traffic for timeslot 5 at Frame 2 and MCR traffic for time slot 9 at Frame 3. Since anyfresh time frame is always scheduled for MCR traffic first, MCRguarantee can be achieved. Of course, an addition reservation ORM isneeded to carry this information among the SMs. Although the throughputof the scheduler stays the same, the latency of the scheduler isdoubled.

FIG. 16 illustrates an example similar to FIGS. 14( a) and 14(b), withMCR and guaranteed traffic for conforming cells. In this two-phaseapproach, the scheduler makes and holds reservations only for conformingcells in frame 1, and then makes and holds reservations for conformingas well as nonconforming cells in frame 2. AT TS1, SM3 (output 2) meetsthe MCR requirements, and thus has a conforming cell. As a result, SM3no longer holds a reservation for TS 11 (output 2). The reservation isgiven up, because it no longer needs to reserved for a conforming cell.Thus, a non-conforming cell may reserve output 2, TS11, as is done atTS3 by SM1.

In FIG. 16, the same example illustrated in FIGS. 14( a) and 14(b) isused, except that the traffic from input port 3 to output port 2 is MCRguaranteed. Another vector ORM_(kj) is added to the set that were passedamong the SMs. The status of the ORM vector at the end of a time framewill initialize the OR vector at the beginning of the next time frame sothat MCR traffic will be given priority. In addition, those “heldpermission of reservation” ports will have to be released if preemptedby a MCR reservation in the same time frame.

Additionally, at time slot 2, SM3 makes reservation for output 4 at timeslot 6 because port 2 was blocked. However, SM3 can not hold thereservation right for port 2 at time slot 10, because the slot was usedby the MCR traffic. Further, at time slot 3, SM1 holds the reservationright for output port 2 for time slot 11 anyway although this slot wasreserved already by some other SM, because SM1 does not check the statusof ORM while attempting to hold a reservation right. Thus, the heldreservation right is released by input port 1 at time slot 11, when SM1tries to exercise that right. Alternatively, SM3 makes a MCR reservationfor output port 2 for time slot 9, although port 2's reservation rightwas held by SM2 at time slot 2, which forces SM2 to release its heldright when time when SM2 tries to exercise its right later.

Each output port will have two lines to signal the scheduler 4, as shownschematically in FIG. 1. One line will signal “stop non-conformingtraffic only.” The other line will signal “stop both conforming andnon-conforming traffic.” When an output port senses an oncomingoverflow, it can assert one line or the other. Again, the CAC shouldhave ensured that the output port (and output lines) could support allconforming traffic, thus requesting a halt to non-conforming trafficonly should normally suffice. Frequent request to stop all traffic to anoutput port probably indicates that tuning of the CAC is necessary.

A further alternative embodiment of combining the fairness and bandwidthguarantee scheduling involves having the input port that previously helda preempted permission of reservation by a MCR scheduling continue tohave priority to hold permission of reservation of the same output portagain. This alternative ensures input fairness for a given output portregardless of whether MCR scheduling is present.

V. Multicasting and Back-Pressure

The preferred embodiment of the present invention places a copy of themulticast datagram into each desired unicast queue. Copies of thedatagram are not made until absolutely necessary. For example, but notby way of limitation, if a multicast datagram is destined for twodifferent output ports, then a datagram is copied into the correspondingrelevant queues at the input port. However, if a multicast datagram isdestined for two output lines connected to the same output port, onlyone copy of the datagram is sent to the output port, but at the outputport the datagram is copied and put into the corresponding output linequeues. In an ATM or MPLS context, it may be desirable to send multiplecopies of a multicast datagram over the same output line. Theaforementioned scheme would be handled similarly at the output port.

For example, but not by way of limitation, if a multicast cell arrivedat input i with destinations j, k, and l, a copy is placed in all threerelevant queues. While there is an extra cost in this approach thatincludes the maintenance of multiple copies of multicast cells at theinput ports 1 a . . . 1N, this approach has the benefit of being able touse simple unicast schedulers. This approach is a simple extension ofthe unicast bandwidth guarantees, and conforms to the “maximum load”guaranteed bandwidth approach described earlier, and is therefore easyfor the CAC to handle. For example, but not by way of limitation, theflow described above would require reserved bandwidth for the relevantclass from i to j, i to k, and i to 1.

Core switch support for certain issues associated with the switchinterface, includes (i) the reconstruction of datagrams at the output,and (ii) back-pressure signals from the output port to the scheduler.

In the basic switch model, IP datagrams are partitioned into cells atthe input of the crossbar switch 5, and cells are concatenated back intodatagrams at the output. In the preferred embodiment of the presentinvention, associated with each input port are 8 input lines, andassociated with each output port are 8 output lines. The sum of thecapacity of the lines connected to a port is approximately equal to theoverall capacity of the port. To be specific, we assume the input(output) lines can support 2.4 Gbs, and that input (output) ports cansupport 20 Gbs.

Different datagrams can enter an input port simultaneously from thedifferent lines, as shown in FIG. 17. When a datagram arrives, its classis determined, and the next hop is determined. If necessary, multicastcopies are created as described above, with a distinct copy being madefor each distinct output port, and the datagrams are segmented intocells. The cells are then multiplexed into a single flow. Datagramsarriving at a particular input line are routed sequentially (i.e. nointerleaving of cells from datagrams arriving at the same line).

FIG. 18 shows the design of the output line interface. First, multicastcopies are made if multiple output lines are on the multicast route,which is somewhat complicated by the fact that the datagrams have notyet been assembled. Then, demultiplexing is required to route eachdatagram to the appropriate output line. Because each output line maysimultaneously be constructing 8 NK datagrams in the worst case, 8 NKqueues are needed to reconstruct the datagrams. Multicast copying againtakes place to handle ATM and MPLS environments. Then, the datagrams arequeues again according to class before being sent on the output line.

The switch 5 must provide sufficient information to enable the outputports 2 a . . . 2N to properly reconstruct the datagrams. The outputport needs to know the input line (i.e., the input port and inputoffset) the output offset, and the class of each cell, which is overheadinformation that is sent in a header that accompanies each cell goingthrough the switch 5. FIG. 3 shows a super-cell, including overheadlabeling information.

Since the C cells in each super-cell may have different input offset,output offset, and class, each cell requires 3 labels. Since there are Roffsets per port and K classes, this amounts to C*(2 log R+log K) bitsper super-cell. Additionally, while the input port must be known, allcells in a super-cell will have the same input port. Thus, the number ofbits to label the common input port is log N, and the total number ofoverhead bits per super-cell is C*(2 log R+log K)+log N.

Since an output line has less capacity than an output port, there is aneed for queuing at the output ports. The CAC ensures that no outputline supports conforming traffic greater than the capacity of thatoutput line. However, non-conforming traffic can overtake the capacityof a single input line. For example, but not by way of limitation, anoutput port receives non-conforming traffic at a rate of 20 Gbs, alldestined for the same output line that can handle only 2.4 Gbs.

Though the crossbar switch 5 cannot be stable for such a load over along period of time, bursty traffic is supported. A number of excessbuffers is located at each output port. In addition, an output port canrequest a slow-down or even halt traffic by signaling the scheduler. Byusing this back-pressure technique, the buffers at both the input ports1 a . . . 1N and the output ports 2 a . . . 2N can support such trafficbursts.

Changing the scheduler design to support back-pressure requests islogically straightforward. However, a naïve related art implementationof the proposed scheme has a scalability problem, since each of the Mscheduling modules will need to know all output ports 2 a . . . 2Nrequesting back-pressure. Certainly, 2N additional pins on eachscheduling module cannot be afforded. Additionally, severalimplementation schemes are possible, from pipelining back-pressureinformation between scheduling modules, to broadcasting only changes inback-pressure status.

VI. Advantages

The present invention has various advantages over the prior art. Forexample, but not by way of limitation, the method of scheduling andreservation according to the preferred embodiment of the presentinvention has an improved speed. As noted above, the preferredembodiment of the present invention uses a pipeline technique withsimple operations in each stage, and a throughput of one partial set ofselection of input-output connections per time slot is achieved.Further, minimum bandwidth is guaranteed using the two-phase schedulingsystem according to the preferred embodiments of the present invention.

Additionally, it is an advantage that the preferred embodiment of thepresent invention supports multiple classes of traffic, each classhaving its own QoS. Each class is provided with credits, and new creditsare generated at a rate equal to the guaranteed bandwidth for the class.Cells with credits have high priority, and can make reservations in thefirst phase of the scheduling algorithm. As noted above, the CACdetermines the amount of bandwidth that can be guaranteed to each class.By controlling bandwidth allocation, different classes are provided withdifferent QoS.

Another advantage is that the preferred embodiment of the presentinvention also supports non-conforming (i.e., best-effort) traffic.Classes that send traffic higher than their guaranteed rate will nothave enough credits for all the cells therein, and cells without creditscan make reservations only in the second phase of the schedulingalgorithm.

Further, it is another advantage of the present invention that input andoutput ports are treated fairly. Also, the present invention has anadvantage in that the scheduler is work-conserving. In each time slot, amaximal set of queues is serviced. Also, fairness between ports isensured (e.g., equal fairness or weighted fairness for certain ports).The fairness problem is further alleviated by holding reservationpriority.

The present invention also provides a scalable design. Increasing thenumber of classes supported does not affect the scheduler design butincurs a small extra cost at the input ports 1 a . . . 1N, which mustmaintain more queues.

Additionally, the preferred embodiment of the present invention has ahigh degree of scalability for at least two reasons. First, increasingthe number of supported classes does not increase the complexity of thescheduler, because the scheduler only needs to differentiate betweenconforming and non-conforming traffic. Thus, only the CAC and the inputports 1 a . . . 1N handle the provision of different services todifferent classes. Second, increasing the number of input or outputports 2 a . . . 2N does not adversely affect the throughput of thescheduler 4.

The present invention is also more efficient. For example, but not byway of limitation, the preferred method of informing the scheduler 4 ofarrivals of potential super-cells according to the present invention ismore efficient than the related art method of sending the scheduler 4the full status information at every time slot. If the scheduler 4according to the preferred embodiment of the present invention needs toknow about the existence of conforming and non-conforming super-cellsfrom input port i to output port j, the “full status” related artapproach requires at least 2N bits for communication between each inputport module and the scheduler for each slot, which results in a total of2N² bits. In contrast, if the “arrival signal” method of the preferredembodiment of the present invention is used, only (log₂ N+1)communication bits are needed for each input port bit (i.e., to indicatethe output port number and the conforming information), resulting in atotal of N (log₂ N+1) bits.

It will be apparent to those skilled in the art that variousmodifications and variations can be made to the described preferredembodiments of the present invention without departing from the spiritor scope of the invention. Thus, it is intended that the presentinvention cover all modifications and variations of this inventionconsistent with the scope of the appended claims and their equivalents.

1. A system for transporting data, comprising: an input device that receives data from at least one input line and generates at least one supercell comprising a prescribed plurality of cells; a scheduling device that receives a request from said input device when said prescribed plurality of cells has arrived at said input device, and generates a grant that instructs said input device to generate said at least one supercell; and an output device that receives said at least one supercell via a crossbar switch and in accordance with said grant, wherein said supercell comprises one of two classes and corresponds to said output device, and wherein a first of said two classes comprises selected ones of said plurality of cells that conform to a minimum cell rate (MCR), and a second of said two classes comprises selected ones of said plurality of ATM cells that do not conform to said MCR.
 2. The system of claim 1, wherein said input device generates said at least one supercell comprising conforming cells prior to generating a supercell comprising nonconforming cells.
 3. The system of claim 1, further comprising a plurality of queues at said input device, each of said plurality of queues processing a quality of service class, corresponding to said output device.
 4. The system of claim 3, further comprising a port selector that selects said request for transmission to said scheduler, receives said grant, and generates said supercell in accordance with said grant.
 5. The system of claim 1, wherein said system is configured to support multicasting.
 6. The system of claim 1, further comprising a back pressure signal generated from said output device to said scheduler, wherein said scheduler generates said grant in accordance with said back pressure signal.
 7. The system of claim 1, wherein said scheduler does not require header information for each of said plurality of cells.
 8. The system of claim 1, wherein said output device deconstructs said supercell and generates an output.
 9. The system of claim 1, wherein said input device transmits said request for a first of said two classes if said prescribed plurality of cells conforming to a minimum cell rate has been received by said input device, and said input device transmits said request for a second of said two classes if said prescribed plurality of cells not conforming to said minimum cell rate has been received by said input device.
 10. The system of claim 9, further comprising a first-in first-out (FIFO) queue that determines a priority of said prescribed plurality of cells used to generate said supercell.
 11. The system of claim 1, said input device comprising: a classifying device that receives said data from said input line; a routing device that routes said data from said classifying device to a multicasting device that generates a multicast copy of said data; a segmenting device that segments said data; and a multiplexer that multiplexes said segmented data into one of said prescribed plurality of cells.
 12. The system of claim 1, wherein said output device comprises: a first multicast copier that receives and makes a multicast copy of each of said prescribed plurality of cells; a demultiplexer that deconstructs said cells and transports said deconstructed cells to one of a plurality of queues corresponding to output offsets of said output device; a second multicast copier, in each of said plurality of queues, that makes a multicast copy of said transported, deconstructed cells; and a plurality of queues corresponding to a plurality of quality of service classes, that generate IP datagrams to corresponding output lines.
 13. A method of transporting data, comprising: determining whether cells received at an input port have a conforming status or a non-conforming status, a cell having the conforming status being a conforming cell and a cell having the non-conforming status being a non-conforming cell; reserving a queue position for a conforming cell, followed by reserving a queue position for a non-conforming cell in a queue of said input port, until a predetermined number of said received cells has been reserved in said queue; generating and transmitting, by the input port, a request to a scheduler in accordance with results of said reserving; generating and transporting a supercell that comprises one of said conforming cells or said non-conforming cells in accordance with a grant received by said input port from said scheduler; and receiving and deconstructing said supercell at an output port.
 14. The method of claim 13, further comprising: incrementing a conforming cell counter for each conforming cell received at said input port, and adding a queue number of said conforming cell to a first-in first-out (FIFO) queuing list for conforming cells; incrementing a non-conforming cell counter for each non-conforming cell received at said input port, and adding a queue number of said non-conforming cell to a first-in first-out (FIFO) queuing list for non-conforming cells; storing in a queue one of said conforming cells or said non-conforming cells; correspondingly sending one of a conforming cell request or a non-conforming cell request to said scheduler once said predetermined number of cells has been reserved for said queue, said scheduler generating said grant in accordance with said sending; and building one of a conforming supercell or a non-conforming supercell in accordance with said grant.
 15. The method of claim 13, wherein said conforming cells comprise selected ones of said received cells that conform to a minimum cell rate (MCR), and said non-conforming cells comprise selected ones of said received cells that do not conform to said MCR.
 16. The method of claim 15, wherein said generating and transmitting a supercell comprises generating a supercell comprising conforming cells prior to generating a supercell comprising non-conforming cells.
 17. The method of claim 13, further comprising processing a plurality of quality of service classes in a plurality of queues at said input port, wherein said input port corresponds to the output port.
 18. The method of claim 17, further comprising selecting said request for transmission to said scheduler in a port selector at said input port, receiving said grant, and generating said supercell in accordance with said grant.
 19. The method of claim 13, wherein said input port is configured to support multicasting.
 20. The method of claim 13, further comprising generating a back pressure signal at said output port to said scheduler, and generating said grant in accordance with said back pressure signal.
 21. The method of claim 13, wherein said generating said grant does not require header information for each of said received cells.
 22. The method of claim 15 wherein said input port transmits said request for a first of two classes if said received cells conforming to a minimum cell rate have been received by said input port, and said input port transmits said request for a second of said two classes if said received cells not conforming to said minimum cell rate have been received by said input port.
 23. The method of claim 13, further comprising receiving said cells at said input port, comprising: receiving and classifying data from an input line; generating a multicast copy of said data; segmenting said data; and multiplexing said segmented data into one of said received cells.
 24. The method of claim 13, wherein said receiving and deconstructing comprises: receiving and making a first multicast copy of each of said received cells; demultiplexing said received cells and transporting said demultiplexed cells to one of a plurality of queues corresponding to output lines of said output port; making a second multicast copy in each of said plurality of queues, of said transported, deconstructed cells; and generating IP datagrams in said plurality of queues corresponding to a plurality of quality of service classes, for each of said corresponding output lines.
 25. A system for transporting data, comprising: an input port having a plurality of queues corresponding to a plurality of quality of service levels for a plurality of output ports, each of said queues receiving a plurality of cells of a first type and a second type; and a scheduling module at said input port that receives cells from said plurality of queues and constructs supercells in accordance with a reservation vector for each of said queues, wherein non-empty ones of said plurality of queues have fair access to said scheduler, and said supercells are transported to said output ports in accordance with a grant that is generated based on a request from said input port.
 26. The system of claim 25, wherein said reservation vector reserves a corresponding time slot in a subsequent frame for said scheduling module and a corresponding one of said plurality of output ports.
 27. The system of claim 26, wherein said reservation vector holds a reservation for a corresponding time slot in a frame following said subsequent frame if said corresponding time slot of said subsequent frame cannot be reserved for said scheduling module.
 28. The system of claim 25, wherein said scheduling module comprises a computer readable medium having software instructions for: (a) determining whether priority is held for a current time slot; (b) if said priority is held for said current time slot, determining whether said time slot is reserved by traffic conforming to a minimum cell rate (MCR); (c) if said time slot is reserved by traffic conforming to said MCR or if said priority is not held for said current time slot, then: (i) determining whether a current output queue is empty, (ii) if said current output queue is not empty, determining whether said output port is available and not held by another input port, (iii) if said current output queue is empty or said output port is not available or held by another input port, selecting a subsequent queue from a round robin list, and (iv) if said output port is available and not held by another input port, reserving an output for said current time slot; (d) if said time slot is not reserved by traffic conforming to said MCR, reserving an output with held priority and releasing holding priority for a next frame; (e) after completion of one of (d) or (iv), then: (v) determining whether an output queue for said next frame is empty, (vi) if said output queue for said next frame is not empty, determining whether said output port is available and not held by another input port, (vii) if said output queue for said next frame is empty or said output port is not available or held by another input port, selecting said subsequent queue from a round robin list, and (viii) if said output port is available and not held by another input port, reserving an output for said time slot in said next frame.
 29. The system of claim 28, said software instructions further include instructions for: starling from a head of a dynamic round robin list prior to performing at least one of (i) or (v); and moving a reserved output to a back of said dynamic round robin list after performing at least one of (iv) or (viii), wherein said dynamic round robin is applied to select said subsequent queue in at least one of (iii) or (vii).
 30. The system of claim 25, wherein said first type of cells conform to a minimum cell transport rate, and said second type of cells do not conform to said mini mum cell transport rate.
 31. The system of claim 30, wherein said first type of cells are constructed into supercells before said second type of cells.
 32. The system of claim 25, wherein said fair access comprises equal time slot access for each of said non-empty queues.
 33. A method of transporting data, comprising: receiving data at an input device and generating cells; classifying said cells into one of a conforming class or a non-conforming class, wherein said conforming class comprises cells that conform to a minimum cell rate (MCR) requirement; transmitting a request from said input device to a scheduler; in accordance with a grant from said scheduler, operating a scheduling module to provide fair access to a plurality of queues containing said cells at said input device, wherein said scheduling module controls transport of said cells from said input device to an output device; and deconstructing said cells at said output device to form IP datagrams, and outputting the IP datagrams.
 34. The method of claim 33, said operating comprising reserving said scheduling module for a prescribed queue for a time slot of a subsequent frame that is the same time slot as the current time frame.
 35. The method of claim 34, wherein a reservation is held for a time slot of a frame after said subsequent frame and at the same time slot as the current frame when said time slot of said subsequent frame is not available for said prescribed queue.
 36. The method of claim 33, further comprising generating a back pressure signal from said output device to said scheduler to control a cell transport rate.
 37. The method of claim 33, further comprising: (a) determining whether priority is held for a current time slot; (b) if said priority is held for said current time slot, determining whether said time slot is reserved by traffic conforming to said MCR; (c) if said time slot is reserved by traffic conforming to said MCR or if said priority is not held for said current time slot, performing the following: (i) determining whether a current output queue is empty, (ii) if said current output queue is not empty, determining whether said output device is available and not held by another input device, (iii) if said current output queue is empty or said output port is not available or held by another input port, selecting a subsequent queue from a round robin list, and (iv) if said output device is available and not held by another input device, reserving an output for said current time slot; (d) if said time slot is not reserved by traffic conforming to said MCR, reserving an output with held priority and releasing holding priority for a next frame; (e) after completion of one of (d) or (iv), performing the following: (v) determining whether an output queue for said next frame is empty, (vi) if said output queue for said next frame is not empty, determining whether said output device is available and not held by another input device, (vii) if said output queue for said next frame is empty or said output device is not available or held by another input device, selecting said subsequent queue from a round robin list, and (viii) if said output device is available and not held by another input device, reserving an output for said time slot in said next frame.
 38. The method of claim 37, further comprising: starting from a head of a dynamic round robin list prior to performing at least one of (i) or (v); and moving a reserved output to a back of said dynamic round robin list after performing at least one of (iv) or (viii), wherein said dynamic round robin is applied to select said subsequent queue in at least one of (iii) or (vii). 